package com.example.arffrecorder.graphics;
import com.example.arffrecorder.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;


public class SplashScreen extends Activity{
	private static int SPLASH_TIME_OUT = 1500;
	 
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.splashscreen);
        //display the splash screen with a timer
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                // once the timer is over, the main activity will be started
                Intent i = new Intent(SplashScreen.this, MainScreen.class);
                startActivity(i);
                // close this activity
                finish();
            }
        }, SPLASH_TIME_OUT);
    }
}
